import request from '@/utils/request'

// 查询ai对话列表
export function listAiConversation(query) {
  return request({
    url: '/aiConversation/aiConversation/list',
    method: 'get',
    params: query
  })
}

// 查询ai对话详细
export function getAiConversation(aiConversationId) {
  return request({
    url: '/aiConversation/aiConversation/' + aiConversationId,
    method: 'get'
  })
}

// 新增ai对话
export function addAiConversation(data) {
  return request({
    url: '/aiConversation/aiConversation',
    method: 'post',
    data: data
  })
}

// 修改ai对话
export function updateAiConversation(data) {
  return request({
    url: '/aiConversation/aiConversation',
    method: 'put',
    data: data
  })
}

// 删除ai对话
export function delAiConversation(aiConversationId) {
  return request({
    url: '/aiConversation/aiConversation/' + aiConversationId,
    method: 'delete'
  })
}

// export function getAiConversationId(){
//   return request({
//     url: 'aiConversation/aiConversation/aiConversationId',
//     method: 'get'
//   })
// }